package com.cw.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.alibaba.excel.annotation.ExcelProperty;

/**
 * @author ly
 * @since 2022-02-24
 */
@ApiModel(value = "")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("HIS.MESS_MAIN_INFO")
public class MessMainInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @TableId("XH")
    private String xh;

    @ApiModelProperty(value = "标题")
    @ExcelProperty(value = "MESS_TITLE")
    @TableField("MESS_TITLE")
    private String messTitle;

    @ApiModelProperty(value = "内容")
    @ExcelProperty(value = "MESS_NR")
    @TableField("MESS_NR")
    private String messNr;

    @ApiModelProperty(value = "发布时间")
    @ExcelProperty(value = "SEND_TIME")
    @TableField("SEND_TIME")
    private String sendTime;

    @ApiModelProperty(value = "是否使用")
    @ExcelProperty(value = "IF_USE")
    @TableField("IF_USE")
    private String ifUse;

    @ApiModelProperty(value = "是否全部")
    @ExcelProperty(value = "IF_ALLUSER")
    @TableField("IF_ALLUSER")
    private String ifAlluser;

    @ApiModelProperty(value = "单独科室发送")
    @ExcelProperty(value = "SEND_DEPTCODE")
    @TableField("SEND_DEPTCODE")
    private String sendDeptcode;

    @ApiModelProperty(value = "单独发送给某人")
    @ExcelProperty(value = "SEND_ONEOPER")
    @TableField("SEND_ONEOPER")
    private String sendOneoper;

    @ApiModelProperty(value = "操作员")
    @ExcelProperty(value = "OPER_CODE")
    @TableField("OPER_CODE")
    private String operCode;

    @ApiModelProperty(value = "操作员姓名")
    @ExcelProperty(value = "OPER_NAME")
    @TableField("OPER_NAME")
    private String operName;

    @ApiModelProperty(value = "操作时间")
    @ExcelProperty(value = "OPER_TIME")
    @TableField("OPER_TIME")
    private LocalDateTime operTime;

    @ApiModelProperty(value = "已阅读用户")
    @ExcelProperty(value = "READ_USER")
    @TableField("READ_USER")
    private String readUser;

    @ApiModelProperty(value = "消息来源")
    @ExcelProperty(value = "MESS_SOURCE")
    @TableField("MESS_SOURCE")
    private String messSource;

    @ApiModelProperty(value = "lis危机值样本号")
    @ExcelProperty(value = "LIS_SAMPLE")
    @TableField("LIS_SAMPLE")
    private String lisSample;

    @ApiModelProperty(value = "几小时后过期")
    @ExcelProperty(value = "MESS_EXPIRE")
    @TableField("MESS_EXPIRE")
    private BigDecimal messExpire;

    @ApiModelProperty(value = "危机值标示  1-是危急值")
    @ExcelProperty(value = "WJZ_FLAG")
    @TableField("WJZ_FLAG")
    private String wjzFlag;

    @ApiModelProperty(value = "确认人")
    @ExcelProperty(value = "CONFIRM_USER")
    @TableField("CONFIRM_USER")
    private String confirmUser;

    @ApiModelProperty(value = "确认时间")
    @ExcelProperty(value = "CONFIRM_TIME")
    @TableField("CONFIRM_TIME")
    private LocalDateTime confirmTime;

    @ApiModelProperty(value = "护士确认接收消息的工号")
    @ExcelProperty(value = "HSQRJSXX_CODE")
    @TableField("HSQRJSXX_CODE")
    private String hsqrjsxxCode;

    @ApiModelProperty(value = "护士确认接收消息的时间")
    @ExcelProperty(value = "HSQRJSXX_TIME")
    @TableField("HSQRJSXX_TIME")
    private LocalDateTime hsqrjsxxTime;

    @ApiModelProperty(value = "联系医生的护士工号")
    @ExcelProperty(value = "LXYS_NURSE_CODE")
    @TableField("LXYS_NURSE_CODE")
    private String lxysNurseCode;

    @ApiModelProperty(value = "联系的医生姓名")
    @ExcelProperty(value = "LXYS_CODE")
    @TableField("LXYS_CODE")
    private String lxysCode;

    @ApiModelProperty(value = "联系的医生电话")
    @ExcelProperty(value = "LXYS_TEL")
    @TableField("LXYS_TEL")
    private String lxysTel;

    @ApiModelProperty(value = "护士联系医生的时间")
    @ExcelProperty(value = "HSLXYS_TIME")
    @TableField("HSLXYS_TIME")
    private LocalDateTime hslxysTime;

    @ApiModelProperty(value = "医生确认接收消息的工号")
    @ExcelProperty(value = "YSQRJSXX_CODE")
    @TableField("YSQRJSXX_CODE")
    private String ysqrjsxxCode;

    @ApiModelProperty(value = "医生确认接收消息的时间")
    @ExcelProperty(value = "YSQRJSXX_TIME")
    @TableField("YSQRJSXX_TIME")
    private LocalDateTime ysqrjsxxTime;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "REMARKS")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "医生确认的电脑 IP")
    @ExcelProperty(value = "YSQR_IP")
    @TableField("YSQR_IP")
    private String ysqrIp;

    @ApiModelProperty(value = "医生确认的电脑名称")
    @ExcelProperty(value = "YSQR_MAC")
    @TableField("YSQR_MAC")
    private String ysqrMac;

    @ApiModelProperty(value = "护士联系医生确认的电脑IP")
    @ExcelProperty(value = "HSLXYS_IP")
    @TableField("HSLXYS_IP")
    private String hslxysIp;

    @ApiModelProperty(value = "护士联系医生确认的电脑名称")
    @ExcelProperty(value = "HSLXYS_MAC")
    @TableField("HSLXYS_MAC")
    private String hslxysMac;

    @ApiModelProperty(value = "危急值医生状态确认(1已处理2注意观察结果3继续观察4其他)")
    @ExcelProperty(value = "MESS_RESULT")
    @TableField("MESS_RESULT")
    private String messResult;

    @ApiModelProperty(value = "危急值状态其他4(医生录入)")
    @ExcelProperty(value = "MESS_RESULT_OTHER")
    @TableField("MESS_RESULT_OTHER")
    private String messResultOther;

    @ApiModelProperty(value = "推送给EMR平台状态 1 已发送   NULL 未发送")
    @ExcelProperty(value = "MQ_SEND_FLAG")
    @TableField("MQ_SEND_FLAG")
    private String mqSendFlag;

    @ApiModelProperty(value = "推送给EMR平台时间")
    @ExcelProperty(value = "MQ_SEND_TIME")
    @TableField("MQ_SEND_TIME")
    private LocalDateTime mqSendTime;

    @ApiModelProperty(value = "EMR接收状态   1 成功  0失败")
    @ExcelProperty(value = "MQ_RECEIVE_FLAG")
    @TableField("MQ_RECEIVE_FLAG")
    private String mqReceiveFlag;

    @ApiModelProperty(value = "科室名称")
    @TableField("DEPT_NAME")
    private String deptName;




}
